package com.company.controller;

import com.company.store.ChicagoPizzaStore;
import com.company.store.NYPizzaStore;
import com.company.store.PizzaStore;

/**
 * 爱吃披萨的客户
 */
public class Client {
    public static void main(String[] args) {
        /*
            芝加哥客户，要吃芝加哥特色披萨
         */
        PizzaStore chicagoPizzaStore = new ChicagoPizzaStore();
        // 披萨种类：  cheese  | clam  |  veggie
        chicagoPizzaStore.orderPizza("cheese");

        System.out.println("===============================================================");

        /*
            纽约客户，要吃纽约特色披萨
         */
        PizzaStore nyPizzaStore = new NYPizzaStore();
        // 披萨种类：  cheese  | clam  |  veggie
        nyPizzaStore.orderPizza("clam");
    }
}
